<template>
  <div class="violation-detail">
    <div class="violation-detail__header">
      <div class="violation-detail__header-imgs">
        <div class="violation-detail__header-img vdh-img-outer"></div>
        <div class="violation-detail__header-img-in"></div>
      </div>
      <div class="violation-detail__header-text">
        <div class="vdht-name">
          <span class="vdht-name_left"></span>
          {{ detailInfo.area }}
        </div>
        <div class="vdht-content">
          <div>
            违法占地
            <span>{{ detailInfo.count }}</span>
            <label>亩</label>
          </div>
          <div>
            违法户数
            <span>{{ detailInfo.houseNum }}</span>
            <label>户</label>
          </div>
        </div>
      </div>
    </div>
    <div class="violation-detail__bottom">
      <div>
        <div class="vdb-title">退出</div>
        <div class="vdb-count vs-number">
          {{ detailInfo.dropOut }}
          <span>户</span>
        </div>
      </div>
      <div>
        <div class="vdb-title">有偿使用</div>
        <div class="vdb-count vs-number">
          {{ detailInfo.paidUse }}
          <span>户</span>
        </div>
      </div>
      <div>
        <div class="vdb-title">有偿使用</div>
        <div class="vdb-count vs-number">
          {{ detailInfo.paidUseTwo }}
          <span>户</span>
        </div>
      </div>
      <div>
        <div class="vdb-title">拆除</div>
        <div class="vdb-count vs-number">
          {{ detailInfo.tearDown }}
          <span>户</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "ViolationDetail",
  props: ["detailInfo"],
  data() {
    return {};
  }
};
</script>

<style lang="less">
.violation-detail {
  .vdh-img-outer {
    -webkit-transition-property: -webkit-transform;
    -webkit-transition-duration: 1s;
    -moz-transition-property: -moz-transform;
    -moz-transition-duration: 1s;
    -webkit-animation: vs-rotate-reverse 3s linear infinite;
    -moz-animation: vs-rotate-reverse 3s linear infinite;
    -o-animation: vs-rotate-reverse 3s linear infinite;
    animation: vs-rotate-reverse 3s linear infinite;
  }
  &__header {
    height: 80px;
    display: flex;
    align-items: center;
    background: rgba(193, 230, 26, 0.05);
    padding: 0 0 0 10px;
    box-sizing: border-box;
    &-imgs {
      position: relative;
      height: 55px;
      width: 55px;
      margin-right: 20px;
    }
    &-img {
      background-image: url("~@/assets/images/visual-screen/vd-run.png");
      height: 55px;
      width: 55px;
      &-in {
        position: absolute;
        top: 8px;
        left: 8px;
        background-image: url("~@/assets/images/visual-screen/vd-jiance.png");
        height: 39px;
        width: 39px;
      }
    }
    &-text {
      .vdht-name {
        font-family: PingFangSC-Regular;
        font-size: 16px;
        color: #ffffff;
        letter-spacing: 0;
        &_left {
          display: inline-block;
          height: 12px;
          width: 12px;
          background: #c1e61a;
        }
      }
      .vdht-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-width: 286px;
        > div {
          font-family: PingFangSC-Regular;
          font-size: 16px;
          color: #ffffff;
          letter-spacing: 0;
          > span {
            font-family: antonio;
            font-size: 20px;
            color: #c1e61a;
            letter-spacing: 0;
            margin: 0 2px;
          }
          > label {
            font-size: 16px;
            color: rgba(255, 255, 255, 0.6);
            letter-spacing: 0;
          }
        }
      }
    }
  }
  &__bottom {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .vdb-title {
      font-family: PingFangSC-Regular;
      font-size: 16px;
      color: rgba(255, 255, 255, 0.6);
      letter-spacing: 0;
      text-align: center;
      margin-bottom: 4px;
    }
    .vdb-count {
      height: 40px;
      width: 85px;
      background: rgba(193, 230, 26, 0.05);
      border: 1px solid rgba(193, 230, 26, 0.3);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      color: #ffffff;
      letter-spacing: 1px;
      text-align: center;
      margin-right: 2px;
      position: relative;
      > span {
        position: absolute;
        right: 4px;
        top: 10px;
        font-family: PingFangSC-Regular;
        font-size: 16px;
        color: rgba(255, 255, 255, 0.6);
        letter-spacing: 0;
      }
    }
  }
}
</style>
